package com.wm.blog_common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 推荐
 * </p>
 *
 * @author wm_yu
 * @since 2020-04-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ToString(callSuper = true)
public class TRecommend implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 推荐的文章Id
     */
    private Long recommendId;

    /**
     * 顺序:数字越小,排名越前
     */
    private Integer orderNum;

    /**
     * 标题
     */
    private String title;

    /**
     * 置顶 0:否 1:是
     */
    private Integer top;

    private Long adminId;

}
